using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using MeetingRoom.Domain;

namespace MeetingRoom.Allocation
{
    partial class MeetingRoomAssignService : ServiceBase
    {
        protected Thread thread = null;

        protected MeetingRoomAllocator allocator = null;

        public MeetingRoomAssignService()
        {
            InitializeComponent();
            allocator = new MeetingRoomAllocator();
        }

        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
            thread.Start();
        }

        protected override void OnStop()
        {
            base.OnStop();
            thread.Abort();
        }

        protected void Allocate()
        {
            while(true)
            {
                
            }
        }
    }
}
